<template>
  <div>
    <div class="title" v-for="(item, index) in 5" :key="index">
      列表{{ index + 1 }}
    </div>
    <div class="btn btnDraw" @click="handleTo()">跳转到详情</div>
  </div>
</template>

<script>
export default {
  data() {
    return {};
  },
  created() {},
  methods: {
    handleTo() {
      this.$router.push("/detail");
    }
  }
};
</script>

<style>
.title {
  text-align: center;
  margin-top: 20px;
}
.btn {
  background-color: #ccc;
  border: 1px solid #ccc;
  height: 50px;
  line-height: 50px;
  margin: 20px;
  text-align: center;
}
.btnDraw {
  background-color: #2f85fc;
  color: #fff;
}
</style>
